package com.forum.service;

import com.forum.pojo.TeacherInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.forum.pojo.vo.ArticleModify2;
import com.forum.pojo.vo.SearchTeacherVo;
import com.forum.result.Result;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

/**
 *
 */
public interface TeacherInfoService extends IService<TeacherInfo> {

    Result verify(String username, String password);

    Result getPersonInfo(Long userId);

    Page getTeacherInfoByPage(SearchTeacherVo searchTeacherVo, Long currentPage, Long limit);

    Integer changeAdmin(Integer changedAdmin, String teacherId);

    Integer changeStatus(Integer changedStatus, String teacherId);

    Integer addTeacher(Long teacherId, String name, String unit, String occupation);

    List<ArticleModify2> getPersonArticleById(Long userId);
}
